<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

  <style>
    div{
      width: 150px;
      height: 150px;
      border: 1px solid red;
      /*内边距会影响元素的宽高 想不影响直接修改边框的宽高*/
      padding-top: 50px;
      padding-left: 50px;
    }
  </style>

</head>
<body>

<div>内边框</div>

</body>
</html>